	<select name="email" class="span3 offset1">
<?php
	$username="n00659426";
	$password="n00659426";
	$hostname="localhost";
	$database="n00659426";
	$conn=new mysqli($hostname,$username,$password,$database);
	if(!$conn)
	{
		echo "Unable to connect to database";
	}
	$query = "select * from persons order by LastName";
	$result = mysqli_query($conn,$query);
	while($row = mysqli_fetch_row($result))
	{
		$fName = $row[0];
		$lName = $row[1];
		$email = $row[2];
	?><option value="<?php echo $email; ?>"><?php echo $lName.", ".$fName;?></option>
	<?php } ?>
	</select>
